import emitter from '@/utils/events'
import { useBattle } from '@/utils/use'

export async function createBattle(battleData: any, actions?: any[]) {
    const battle = useBattle(battleData, actions)
    await emitter.emit('loadGameData')
}